<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html >
<html>
<head>
<meta  charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<form  align="left" action="selectByNameAndType.action" method="post">
图书名称:<input type="text" value="${book.b_name }">&nbsp;&nbsp;&nbsp;&nbsp;
图书类别:<input type="text" value="${book.typeId }">&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="搜索"  >
</form>
	<table border="1" >
		<tr>
			<td>图书编号</td>
			<td>图书名称</td>
			<td>图书描述</td>
			<td>图书价格</td>
			<td>图书类别</td>
			<td>图书操作</td>
		</tr>
		<c:forEach items="${booklist }" var="b"> 
		<tr>
				<td width="200px">${b.id }</td>
				<td width="200px">${b.b_name }</td>
				<td width="200px">${b.description }</td>
				<td width="200px">${b.price }</td>
				<td width="200px">${b.type.t_name }</td>
				<td width="200px">
					<a href="showBook.action?id=${b.id }">修改</a>
					<a href="">删除</a>
				</td>
		</tr>
		</c:forEach>
	</table>
	<a href="bookList.action?currentpage=${p.currentpage-1}">上一页</a>
		<c:forEach  begin="1" end="${p.totalpage }" var="num">
			<a href="bookList.action?currentpage=${num}">${num }</a>
		</c:forEach>
	<a href="bookList.action?currentpage=${p.currentpage+1}">下一页</a>
</body>
</html>
